package com.example.zhihu.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 保存到数据库的实体类
 * </p>
 *
 * @author author
 * @since 2022-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_hot_info")
public class HotInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String infoId;

    private String title;

    private String url;

    private LocalDateTime created;

    /**
     * 回答数量
     */
    private Integer answerCount = 0;

    /**
     * 浏览数量
     */
    private Integer visitCount = 0;

    /**
     * 关注数量
     */
    private Integer followerCount = 0;

    /**
     * 评论数量
     */
    private Integer commentCount = 0;

    private String excerpt;

    private Integer hotIndex;

    private String keyword;

    private String firstword;

    private LocalDateTime insertTime;

}
